import request from '@/utils/request'

// 查询在线问诊列表
export function listPatientsConsultation(query) {
  return request({
    url: '/manage/patientsConsultation/list',
    method: 'get',
    params: query
  })
}

// 查询在线问诊详细
export function getPatientsConsultation(id) {
  return request({
    url: '/manage/patientsConsultation/' + id,
    method: 'get'
  })
}

// 新增在线问诊
export function addPatientsConsultation(data) {
  return request({
    url: '/manage/patientsConsultation',
    method: 'post',
    data: data
  })
}

// 修改在线问诊
export function updatePatientsConsultation(data) {
  return request({
    url: '/manage/patientsConsultation',
    method: 'put',
    data: data
  })
}

// 删除在线问诊
export function delPatientsConsultation(id) {
  return request({
    url: '/manage/patientsConsultation/' + id,
    method: 'delete'
  })
}
